// 引入二次封装后的request对象
import request from '@/utils/request.js'

// 定义请求所有科室的api
export const reqPlan = (data) => request.post('/doctor/work/plan/selectWorkPlanByTime', data);

// 定义添加出诊计划
export const insertDoctorPlan = (data) => request.post('/doctor/work/plan/insert', data);


// 定义 通过诊室 id 查询医生出诊计划
export const selectDoctorPlan = (data) => request.post('/doctor/work_plan/schedule/selectScheduleByDeptSub', data);

// 定义添加出诊计划
export const selectPlanByPlanId = (data) => request.post('/doctor/work_plan/schedule/selectScheduleByWorkPlanId', data);

// 定义修改出诊计划
export const updateDoctorPlan = (data) => request.post('/doctor/work_plan/schedule/updateSchedule', data);

// 定义删除出诊计划api
export const deleteDoctorPlan = (data) => request.post('/doctor/work/plan/deleteWorkPlan',data)
